package com.nervenets.web.controller.type;

import com.nervenets.web.controller.TokenParams;
import com.nervenets.web.enumeration.TypeType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
public class TypeEditParams extends TokenParams {
    @ApiModelProperty(value = "分类的类别Id，传0为新建")
    private long typeId;
    @ApiModelProperty(value = "所属商户ID，没有商户的时候传0")
    private long managerId;
    @ApiModelProperty(value = "分类的父级Id，传0为最顶级别")
    private long parentId;
    @ApiModelProperty(value = "分类的类别", required = true)
    @NotNull(message = "不为能空")
    private TypeType type;
    @ApiModelProperty(value = "分类的类别名称", required = true)
    @NotBlank(message = "不为能空")
    private String name;
    @ApiModelProperty(value = "分类的类别LOGO")
    private String logo;
    @ApiModelProperty(value = "分类的类别描述")
    private String detail;
    @ApiModelProperty(value = "分类的类别详情介绍")
    private String content;
    @ApiModelProperty(value = "分类的类别是否启用")
    private boolean enable;
    @ApiModelProperty(value = "分类的类别排序值，越大越靠前")
    private int queue;
    @ApiModelProperty(value = "是否是系统分类，为false时，则为用户自定义分类")
    private boolean system;
}
